package com.thesis.manage.service;

import com.thesis.manage.common.service.BaseService;
import com.thesis.manage.domain.TeacherRole;

import java.util.List;

/**
 * @author php
 * @date 2018/2/7
 */
public interface TeacherRoleService extends BaseService<TeacherRole> {
    /**
     * 通过teacherId查询
     *
     * @param teacherId 教师id
     * @return list
     */
    List<TeacherRole> findByTeacherId(Long teacherId);

    /**
     * 通过teacherId查询权限
     *
     * @param teacherId 教师id
     * @return rids
     */
    List<Integer> findRolesByTeacherId(Long teacherId);

    /**
     * 查找权限
     * 多权限以，分割
     *
     * @param teacherId 教师id
     * @return string
     */
    String findRoles(Long teacherId);

    /**
     * 以院系名称来查询指导教师
     *
     * @param teacherRole 院系
     * @return list
     */
    List<TeacherRole> list(TeacherRole teacherRole);
}
